﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ReportClient.ReportService;

namespace ReportClient
{
    /// <summary>
    /// Interaction logic for ReportControl.xaml
    /// </summary>
    public partial class ReportControl : UserControl
    {
        public ReportDetails WebReportDetails { get; set; }

        public ReportControl()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(ReportControl_Loaded);
        }

        void ReportControl_Loaded(object sender, RoutedEventArgs e)
        {
            this.WebReportViewer.Navigate(new Uri(Settings.CrystalReportUrl));
            if (WebReportDetails != null && this.DataContext !=null)
            {

            }
        }
    }
}
